import request from '@/utils/request'

export function staff(data) {
  return request({
    url: '/staff/list',
    method: 'get',
    params: data
  })
}


export function getObj(data) {
  return request({
    url: '/user/user',
    method: 'get',
    params: {
      id: data
    }
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/staff/addOrUpdate',
    method: 'post',
    data
  })
}

export function limitLogin(data) {
  return request({
    url: '/staff/limitLogin',
    method: 'post',
    params: data
  })
}

export function searchByKw(data) {
  return request({
    url: '/user/searchByKw',
    method: 'get',
    params: {
      kw: data
    }
  })
}